﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Alos.Entity;

namespace Alos.IRepository
{
    public interface IGroupInfoRepository : IBaseRepository<GroupInfo>
    {
        /// <summary>
        /// 根据教师ID和班级ID获取分组信息
        /// </summary>
        /// <param name="TeacherId">教师ID</param>
        /// <param name="ClassId">班级ID</param>
        /// <returns></returns>
        IEnumerable<dynamic> GetGroupInfo(int TeacherId, int ClassId);
        /// <summary>
        /// 根据分组信息添加
        /// </summary>
        /// <param name="GroupInfo">分组信息</param>
        /// <returns></returns>
        bool CreatGroupInfo(GroupInfo GroupInfo);
        /// <summary>
        /// 根据分组ID删除
        /// </summary>
        /// <param name="id">分组ID</param>
        /// <returns></returns>
        bool DeleteGroupInfo(int id);
        /// <summary>
        /// 根据分组老师ID和班级ID删除
        /// </summary>
        /// <param name="TeacherId">老师ID</param>
        /// <param name="ClassId">班级ID</param>
        /// <returns></returns>
        bool DeleteGroupInfoByTeachaerID(int TeacherId, int ClassId);
        /// <summary>
        /// 根据分组ID修改该组信息
        /// </summary>
        /// <param name="GroupInfo">分组信息</param>
        /// <returns></returns>
        bool UpdateGroupInfo(GroupInfo GroupInfo);
    }
}
